package com.jinxin.platform.cdqzsqacs.controller;

import com.alibaba.fastjson.JSONObject;
import com.jinxin.platform.cdqzsqacs.task.ResultEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: apcos-cdqzsqacs
 * Created by 34759 on 2021/9/10 16:52
 */
@RestController
@RequestMapping("/unAuth/test")
@Slf4j
public class TestTokenUrl {

    @PostMapping("/getToken")
    public JSONObject getToken( ){
        log.info("getToken---");
        JSONObject object = new JSONObject();
        JSONObject obj = new JSONObject();
        obj.put("token","123456");
        object.put("result",obj);
        return object;
    }

    @PostMapping("/uploadInfo")
    public ResultEntity uploadInfo( ){
        log.info("uploadInfo---");
        ResultEntity res = new ResultEntity();
        res.setCode(0);
        res.setMessage("suc");
        return res;
    }

}
